<?php
/**
 * Created by PhpStorm.
 * User: tengjs
 * Date: 2020/11/24
 * Time: 10:07
 */

namespace App\Admin\Listeners\UEditor;

use Illuminate\Queue\SerializesModels;
use Overtrue\LaravelUEditor\Events\Uploading;

class UploadingListener
{
    use SerializesModels;

    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  Uploading $event
     *
     * @return void
     */
    public function handle(Uploading $event)
    {
        info('ueditor file is uploading' . json_encode($event) . json_encode($event->file));
    }
}
